﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;using FastCtr;
using FastData;

namespace WindowsFormsApp1
{
    public partial class FormMain : Form
    {

   
        public FormMain()
        {
            InitializeComponent();
          
        }


       
        private void button1_Click(object sender, EventArgs e)
        {
           
        }

        //private void button2_Click(object sender, EventArgs e)
        //{
        //    Task.Factory.StartNew(() =>
        //    {
        //        string str = axNewSerialPort.SendBackMessageInstant("yaoshun", 5000);
        //        if (str != null)
        //        {
        //            MessageBox.Show(str);
        //        }
        //        else
        //        {
        //            MessageBox.Show("超时！");

        //        }
        //    });
        //}

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            SettingForm settingForm = new SettingForm();
            settingForm.ShowDialog();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //GlobalValues.injectForeForm.TopLevel = false;
            GlobalValues.injectForeForm.TopLevel = false;
            newPanel2.Show(GlobalValues.injectForeForm);
            //GlobalValues.injectForeForm.Show();

          // newPanel1.Show(new InjectForeForm());
    


        }
    }
}
